-
Notifications
You must be signed in to change notification settings - Fork 178
Adds Props as a new object type #6836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
41df668 to
9119837
Compare
560ef58 to
56e68c4
Compare
56e68c4 to
6d47939
Compare
db0b6a8 to
8b802ba
Compare
7e3bbbc to
3d00c18
Compare
3cea937 to
d331d00
Compare
f27e2f0 to
2050d6d
Compare
4dbc80a to
5053b91
Compare
5053b91 to
1027a9f
Compare
ef81fc3 to
4ed7f50
Compare
4ed7f50 to
92fecb8
Compare
BMagnu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work.
A few small things, otherwise this is pretty much there.
Just as a list of ToDo you mentioned in the code and that I can think of that should be done in future PRs, as a reference here:
Modelanimation support
Multithreaded collision support
Possibly support as a permanent particle host (think something like a Volcano spewing smoke)
92fecb8 to
27a65e3
Compare
And full QtFRED support which I'll get to once I finish rewriting sexp tree to be shared between FRED and QtFRED. |
BMagnu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Would be IMO ready for testing in nightlies once stable hits.
1acf108 to
2a0a78a
Compare
This PR adds Props as a distinct new object type. Props work very similarly to ships in most cases but there are some key assumptions that make them unique:
Props are meant to be scenery, set pieces, decoration, or even objects rendered by Lua in the UI only. Props do not take up ship slots and are not limited. Props are created in FRED using the new second dropdown with ctrl-shift-click instead of just ctrl-click

Props have a basic set of flags to start:
Props have a basic set of sexps to start:
Props have basic Lua support including collision hooks and table indexing with a standard set of members and methods. Props are also a valid type for Lua SEXPs. Props are viewable in the F3 Lab as well. Props have stubbed in support for @BMagnu animation system and glowpoints but both are inactive for now.
Props.tbl is modular with -prp.tbm. It supports both
+nocreateand+remove. Props can be categorized with colors for easy browsing in FRED. A sample table looks like this:Many thanks to @BMagnu and @Baezon for the assistance in various places of this PR, especially with collisions.
Fixes #4727